package com.atguigu.tingshu.common.constant;

/**
 * @author Haoran Sun
 * @since 2024/08/27
 */


public class RabbitConstant {
    /**
     * 订单交换机
     */
    public static final String ORDER_EXCHANGE = "order_exchange";
    /**
     * 订单队列
     */
    public static final String ORDER_DELAY_QUEUE = "order_queue";
    /**
     * 订单队列路由键
     */
    public static final String ORDER_DELAY_KEY = "order_delay";
    /**
     * 订单取消队列--为订单队列的死信队列
     */
    public static final String ORDER_CANCEL_QUEUE = "order_cancel_queue";
    /**
     * 订单取消队列路由键
     */
    public static final String ORDER_CANCEL_KEY = "order_cancel";
    /**
     * 订单成功队列
     */
    public static final String ORDER_SUCCESS_QUEUE = "order_success_queue";
    /**
     * 订单成功队列路由键
     */
    public static final String ORDER_SUCCESS_KEY = "order_success";


    public static final int ORDER_DELAY_TIME = 60 * 15 * 1000;
}
